package com.chenyongjing.design.pattern.observer.general;

/**
 * 被观察者
 * @Author chen
 * @Date 2022/12/5 21:02
 */
public interface ISubject<E> {
    boolean attach(IObserver<E> observer);

    boolean detach(IObserver<E> observer);

    void notify(E event);
}
